package com.study.spring.boot.service;

import com.study.spring.boot.entity.User;
import com.study.spring.boot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: chenhs
 * @date: Created in 6:34 2019/12/20
 **/
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUser(Integer id) {
        return userMapper.get(id);
    }



}
